package cards;

import model.Player;

public class Pay extends Card {
	protected int amount;
	
	public Pay(String text, int amount) {
		super(text);
		this.amount = amount;
	}

	@Override
	public void execute(Player player) {
		player.withdraw(this.amount);
	}
}